#pragma once

#include "../../resource.h"
#include "afxwin.h"
#include "afxcmn.h"

class CTransNode;

// SKObjectRotate

class CSKObjectRotate : public CDialog
{
	DECLARE_DYNAMIC(CSKObjectRotate)

public:
	CSKObjectRotate(CWnd* pParent = NULL);
	virtual ~CSKObjectRotate();


	enum { IDD = IDD_SKOBJECTROTATE };

	void SetRotatingNode(CTransNode* pNode) { m_pRotatingNode = pNode; }

protected:
	virtual void DoDataExchange(CDataExchange* pDX);

	DECLARE_MESSAGE_MAP()
public:
	double m_editAngle;
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();

	void InitDlg();

	CButton m_btnSelectedNode;
	CTransNode* m_pRotatingNode;

	double m_VerticalAngle;

	double m_HorizontalAngle;

	int m_iVertical;

	int m_iHorizontal;

	CSliderCtrl m_sliderVer;

	CSliderCtrl m_sliderHor;

	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);

	afx_msg void OnBnClickedButtonFlip();

	afx_msg void OnBnClickedBtnA();

	afx_msg void OnBnClickedBtnB();

	afx_msg void OnBnClickedBtnC();

	afx_msg void OnBnClickedBtnD();

	afx_msg void OnBnClickedBtnE();

	afx_msg void OnBnClickedBtnF();

	afx_msg void OnBnClickedBtnG();

	afx_msg void OnBnClickedBtnH();

	afx_msg void OnBnClickedBtnI();

	afx_msg void OnBnClickedBtnJ();

	afx_msg void OnBnClickedBtnL();

	afx_msg void OnBnClickedBtnK();

	afx_msg void OnBnClickedBtnM();
};


struct CSKObjectRotateObject
{
	CSKObjectRotateObject()
	{
		dVerticalAngle = 0;
		iVertical = 0;
		dHorizontalAngle = 0;
		iHorizontal = 0;
	}
	double dVerticalAngle;
	int iVertical;
	double dHorizontalAngle;
	int iHorizontal;
};